package cn.bossfriday.im.common.constant;

import io.netty.util.AttributeKey;

/**
 * ApiConstant
 *
 * @author chenx
 */
public class ApiConstant {

    private ApiConstant() {
        // do nothing
    }

    /**
     * AttributeKey
     */
    public static final AttributeKey<String> ATTRIBUTE_KEY_API_VERSION = AttributeKey.valueOf("ATTRIBUTE_KEY_API_VERSION");
    public static final AttributeKey<Long> ATTRIBUTE_KEY_APP_ID = AttributeKey.valueOf("ATTRIBUTE_KEY_APP_ID");

    /**
     * http
     */
    public static final String HTTP_URL_ARGS_API_VERSION = "apiVersion";
    public static final String HTTP_CONTENT_TYPE_JSON = "application/json; charset=utf-8";
    public static final String HTTP_CONTENT_TYPE_FORM = "application/x-www-form-urlencoded;charset=UTF-8";

    public static final String HTTP_HEADER_APP_KEY = "AppKey";
    public static final String HTTP_HEADER_NONCE = "Nonce";
    public static final String HTTP_HEADER_TIMESTAMP = "Timestamp";
    public static final String HTTP_HEADER_SIGNATURE = "Signature";

    /**
     * apiRoute
     */
    public static final String API_ROUTE_KEY_USER_NAVI = "USER_NAVI";
    public static final String API_ROUTE_KEY_USER_GET_TOKEN = "USER_GET_TOKEN";
}
